<?php
	// 加载模板
	function tempName($param){

		global $articleList;
		global $heat;
		global $total;
		global $maxPage;
		global $key;
		global $page;
		global $count;
		global $info;

		include_once('./'.$param.'.php');
	}

	// 无参跳转
	function skip($ginseng){
		if(!isset($_GET['param'])){

			header('location:./index.php?param='.$ginseng);
		}
	}

	function hintSkip($str = '', $url = ''){

		if(strlen($url) > 0){

			echo '<script>alert("'. $str .'");location.href="'. $url .'";</script>';
		}else{

			echo '<script>alert("'. $str .'");history.back(-2);</script>';
		}
	}
?>